<script>
Father.prototype.name = 'gailun'
function Father(){
}

function Son(){
}
Son.prototype = Father.prototype
var son = new Son()
//弊端，son和father的prototype共有原型，若son修改了原型，则father也被修改
</script>